import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/admin/goods/add',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/admin/goods/del',
    method: 'post',
    data
  })
}
export function setStatus(data) {
  return request({
    url: '/admin/goods/setStatus',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/admin/goods/update',
    method: 'post',
    data
  })
}
export function queryAll(data) {
  return request({
    url: '/admin/goods/queryAll',
    method: 'post',
    data
  })
}

export function queryId(data) {
  return request({
    url: '/admin/goods/queryId',
    method: 'get',
    params: data
  })
}
